package com.owc.dao;

import com.owc.domain.dto.DetailBean;
import com.owc.domain.dto.admin.AccountFlowDTO;
import com.owc.domain.entity.AccountFlow;

import java.util.List;

import com.owc.domain.vo.admin.AccountFlowVo;
import org.apache.ibatis.annotations.Param;

public interface AccountFlowMapper extends BaseMapper<AccountFlow, Long> {

    List<AccountFlowDTO> selectByQueryModel(@Param("queryModel") AccountFlowVo accountFlowVo);

    List<DetailBean> selectUserFlowList(@Param("userId") Long userId, @Param("type") Integer type, @Param("tokenId") Long id);

    void updateStatusByTransferId(AccountFlow accountFlow);

    AccountFlow selectByTransferId(@Param("transferId") String transferId);

    void updateByTransferId(AccountFlow accountFlow);
}